package module.main.event
{
	import flash.events.Event;

	public class MainEvent extends Event
	{
		/**
		 *玩家点击登陆事件 
		 */		
		public static const CLICK_LOGIN_EVENT:String = "CLICK_LOGIN_EVENT";
		public static const CLICK_FRIEND_EVENT:String = "CLICK_FRIEND_EVENT";
		
		public static const GAIN_RESOUSE_EVENT:String = "gain_resouse_event";
		/**
		 * 玩家点击建造事件 
		 */
		public static const CLICK_BUILD_EVENT:String = "CLICK_BUILD_EVENT";
			
		/**
		 * 点击弹出部队信息事件
		 */	
		public static const POP_UP_TROOP_INFO_PANEL:String = "POP_UP_TROOP_INFO_PANEL";
		
		/**
		 *	点击部队列表按钮事件 
		 */		
		public static const CLICK_TROOPLIST_EVENT:String = "CLICK_TROOPLIST_EVENT";
		
		/**
		 *	点击部队头像进行聚焦事件 
		 */		
		public static const CLICK_HERO_IMAGE_EVENT:String = "CLICK_HERO_IMAGE_EVENT";
		
		/**
		 *	点击回家按钮事件 
		 */
		public static const CLICK_HOME_BUTTON:String = "CLICK_HOME_BUTTON";
		
		private var _data:Object;
		public function MainEvent(type:String,bubbles:Boolean = true,cancelable:Boolean = false,data:Object = null)
		{
			super(type, bubbles, cancelable);
			_data = data;
		}
		public function get data():Object {
			return _data;
		}
		
		public function set data(value:Object):void
		{
			_data = value;	
		}
	}
}